package com.gitee.huanminabc.fastboot.exception;

public class ValidationException extends RuntimeException {
	public ValidationException(Throwable e) {
		super(e);
	}
	//format
	public ValidationException(String message, Object... args) {
		//将{}替换为%s
		super(String.format(message.replaceAll("\\{\\s*}", "%s"), args));
	}
	public ValidationException(Throwable e, String message, Object... args) {
		//将{}替换为%s
		super(String.format(message.replaceAll("\\{\\s*}", "%s"), args),e);
	}
}
